package com.py.chat.bean;

import java.util.Date;

//用户信息
public class User {
	public Session session;
	
	private String id;
	private String name;
	private String password;
	private int level;
	private int exp;
	private int skNum;				// 技能数量
	private long lastSendMsgTime;	// 最后发送消息时间 (单位:ms)  
	
	public User() {
		super();
	}
	public User(Session session) {
		this.session = session;
	}
	
	
	public Session getSession() {
		return session;
	}
	public void setSession(Session session) {
		this.session = session;
	}
	public void offline() {
		//TODO 玩家下线
		System.out.println("玩家:" + name + " 下线");
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public int getExp() {
		return exp;
	}
	public void setExp(int exp) {
		this.exp = exp;
	}
	public int getSkNum() {
		return skNum;
	}
	public void setSkNum(int skNum) {
		this.skNum = skNum;
	}
	
	
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public long getLastSendMsgTime() {
		return lastSendMsgTime;
	}
	public void setLastSendMsgTime(long lastSendMsgTime) {
		this.lastSendMsgTime = lastSendMsgTime;
	}

}
